package com.zrj.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrj.common.utils.PageUtils;
import com.zrj.gulimall.product.entity.CategoryEntity;
import com.zrj.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhaorujie
 * @email 781392805@qq.com
 * @date 2021-01-19 15:29:33
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> buildTree();

    List<Long> findCatelogPath(Long catelogId);

    void updateCategory(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

